import { genEmptyResponse } from '@/util/response'

export const create = () => {
  return genEmptyResponse({
    id: -1,
    name: '',
    age: null
  })
}
export const load = id => {
  return genEmptyResponse({
    id,
    name: 'GG',
    age: 18
  })
}
export const save = entity => {
  return genEmptyResponse({
    ...entity,
    id: Date.now()
  })
}
export const update = entity => {
  return genEmptyResponse({
    ...entity
  })
}
